<template>
  <div class="order-list">
<!--    测试我是不是一工程人-->
    <engineerMangement v-if="userInfoObj.ruleType === 'ENGINEER'"></engineerMangement>
    <assign-mangement v-else></assign-mangement>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
import assignMangement from './assign'
import engineerMangement from './engineer'
export default {
  name: "orderList",
  computed: {
    ...mapGetters(['userInfoObj']),
  },
  components: {
    assignMangement,
    engineerMangement
  }, mounted() {
     // alert(this.userInfoObj.ruleType !== 'ENGINEER')
  },
  created() {
    // alert(this.userInfoObj.ruleType !== 'ENGINEER')
  },
}
</script>

<style lang="scss" scope>
  .order-list {
    padding: 20px;
  }
</style>
